import functions as func
from utils.options import ArgsParser
from utils.utils import handle_fl_ret,save_model_result
from helper import Helper,Exp_apporach


def execute(hlpr:Helper):
    if hlpr.exp_approach % 2 == 0:
        func.training.run(hlpr)
        save_model_result(hlpr.save_path,hlpr.save_name,hlpr.task.model)


if __name__ == '__main__':
    args = ArgsParser()
    hlpr:Helper = Helper(args)
    execute(hlpr)